<?php
		/**
		* 
		*/
	class Model_user extends CI_Model
	{
		
		function __construct()
		{
			parent::__construct();
		}
		function get_user_by_username($username){
				$this->db->where("username",$username);
				$query = $this->db->get("tbl_user");
				return $query->row_array();
		}
		function update_user($username,$data){
			$this->db->where("username",$username);
			$this->db->update("tbl_user",$data);
		}
	}
?>